home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / readcpm.arc / EQUATES.ASM next >
Assembly Source File  |  1989-05-30  |  873b  |  47 lines

  1.  
  2. ;
  3. ; Library file of commonly used symbols
  4. ;
  5. NULL    =    00H
  6. CR    =    0DH
  7. LF    =    0AH
  8. FM_FD    =    0CH
  9. CTRL_C    =    03H
  10. ACK    =    06H
  11. NAK    =    21H
  12. SPACE    =    20H
  13. TAB    =    09H
  14. BACKSP    =    08H
  15. BELL    =    07H
  16. XON    =    11H
  17. XOFF    =    13H
  18. SLASH    =    '/'
  19.  
  20. ;
  21. ; Predefined DOS handles
  22. ;
  23. STDIN    =    0
  24. STDOUT    =    1
  25. STDERR    =    2
  26. STDAUX    =    3
  27. STDPRN    =    4
  28.  
  29. ;
  30. ; DOS functions frequently used
  31. ;
  32. $WRITE_FILE    =    40H        ; Write to file function
  33. $READ_FILE    =    3FH        ; Read from file
  34. $CREATE_FILE    =    3CH        ; Create file
  35. $OPEN_FILE    =    3DH            ; Open existing file
  36. $CLOSE_FILE    =    3EH            ; Close file
  37. $DELETE_FILE    =       41H         ; Delete file
  38. $LSEEK_FILE    =    42H            ; Logical seek in file
  39. $ALLOC_MEM    =    48H
  40. $SETBLK_MEM    =    4AH
  41. $FREE_MEM    =    49H
  42. $DOS_EXIT    =    4CH
  43.  
  44. CMD_LINE    =    80H        ; Address of command line in PSP
  45. DEF_FCB1    =    5CH        ;    "    "  1st default FCB
  46. DEF_FCB2    =    6CH            ;    "    "  2nd    "     "
  47.